package com.example.mychatroom.serviceApi;

import com.example.mychatroom.model.User;
import com.example.mychatroom.a_utils.ResponseBodyMessage;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {

    boolean login(HttpServletRequest request, String account, String password,  ResponseBodyMessage<User> responseBodyMessage);

    void registerAccount(HttpServletRequest request, String emailID, String emailCode, String passwordA, String passwordB, ResponseBodyMessage<Boolean> responseBodyMessage);

    //void buildCheckImage(HttpServletRequest request, HttpServletResponse response);

    ResponseBodyMessage<Boolean> sendEmailCode(HttpServletRequest request, String emailId);

}
